﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ZX.Web.UI.Controls.miniDataGrid" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<script src="/SFramework/boot.js"></script>
<body style="margin: 0px; padding: 0px">
    <form id="form1" runat="server">
        <div class="mini-toolbar" style="border-bottom: 0; padding: 0px;">
            <table style="width: 100%;">
                <tr>
                    <td style="width: 100%;">
 <%=BtnItems %>  </td>
                    <td style="white-space: nowrap;">
                        <input id="key" class="mini-textbox" emptytext="请输入姓名" style="width: 150px;" onenter="onKeyEnter" />
                        <a class="mini-button" onclick="search()">查询</a>
                    </td>
                </tr>
            </table>
        </div>
        <div id="treegrid1" class="mini-treegrid" style="width: 100%; height: 100%;"
            url="../data/jsondata.aspx?entity=<%=EntityName%>&type=1" showtreeicon="true"
            treecolumn="Name" idfield="FunctionID" parentfield="ParentId" resultastree="false"
            allowresize="true" expandonload="true">
            <div property="columns">
                <div type="indexcolumn"></div>
                <div name="name" field="name" width="160">菜单名称</div>
                <%=DataFields %>
            </div>
        </div>
    </form>
</body>
<script type="text/javascript">
    const_entityID = "<% =EntityId %>",    //实体ID名称
    const_entityName = "<% =EntityName %>",//实体名称
    const_EditEntity = "<% =EditEntity %>",//编辑实体名
    const_functionId   ="<% =FunctionID %>",//自定义条件
    const_Order ="<% =Order %>",           //排序  
    const_UserId = "<% = UserId %>",       // 


    const_QueryField="<% =QuciklyQueryFields %>",
    const_CustomCondition = encodeURI("<% =DefineCondition %>"),//查询方案条件
    const_Condition = encodeURI("<% =Condition %>"),//
    const_PageTitle=encodeURI("<% =PageTitle %>"),
    _openWindowHeight=<%=EditWindowHeight%>,
    _openWindowWidth=<%=EditWindowWidth%>;

    <% =ColumnDataSource%>
    
</script>
<script>
    <% =List_self_script %>
</script>
<script type="text/javascript">
    $("#treegrid1").height($(document).height() - 36);
    mini.parse();
    var grid = mini.get("treegrid1");
</script>
<script src="../../Scripts/datagrid/list.common.button.js"  type="text/javascript"></script>
<script src="../../Scripts/common/jquery.action.js"  type="text/javascript"></script>
<script src="../../Scripts/ctrls/jquery.fixed.dialog.js" type="text/javascript"></script>
<script src="../../Scripts/ctrls/jquery.fixed.windows.js" type="text/javascript"></script>
<script src="../../Scripts/app/list/model.<% =EntityName %>.js" type="text/javascript"></script>
</html>
